package com.wws.family.ui.activity

import android.os.Bundle
import android.webkit.WebChromeClient
import android.webkit.WebViewClient
import com.wika.basics.base.BaseActivity
import com.wws.family.R
import com.wws.family.databinding.ActivityPolicyBinding

/**
 *@Description: 隐私政策
 *@Date: 2025/1/20 8:46
 *@Author: WangWeiShuo
 */
class PolicyActivity: BaseActivity<ActivityPolicyBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        setActionBar(
            R.drawable.baseline_arrow_back,"隐私政策",
            R.color.black,
            R.color.blue_B8DCFF,
            -1,true,true)
    }

    override fun initData() {
        val webSettings = mBinding.wvPolicy.settings
        webSettings.javaScriptEnabled = true
        mBinding.wvPolicy.webViewClient = WebViewClient()
        mBinding.wvPolicy.webChromeClient = WebChromeClient()
        mBinding.wvPolicy.loadUrl("file:///android_asset/policy.html")
    }

    override fun needFullScreen(): Boolean {
        return false
    }

    override fun actionBarRightClick() {
        TODO("Not yet implemented")
    }
}